package com.designpatternspart2.creationaldesignpatterns.factorymethod;

/**
 * File Name: AnimalFactory.java
 * Version:
 * Description:
 * Package: com.designpatternspart2.singleton.factorymethod
 * Author: Lance
 * Date: Apr 25, 2012
 */
public class AnimalFactory
{

    public Animal getAnimal(String type)
    {
        if ("canine".equals(type))
        {
            return new Dog();
        }
        else
        {
            return new Cat();
        }
    }
}
